package com.hang.gymmanager.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hang.gymmanager.entity.PlaceEntity;
import com.hang.gymmanager.req.ReserveDetailReq;
import com.hang.gymmanager.req.ReservePlaceReq;
import com.hang.gymmanager.req.UpdatePlaceReq;
import com.hang.gymmanager.res.AbleDateRes;
import com.hang.gymmanager.res.PlaceDetailRes;
import com.hang.gymmanager.res.ReserveDetailRes;
import org.springframework.web.multipart.MultipartFile;

import java.time.LocalDate;
import java.util.List;

public interface PlaceService extends IService<PlaceEntity> {

    List<PlaceEntity> getAllPlaces();


    PlaceDetailRes getPlaceDetail(Integer placeId);

    void updatePlaceDetail(UpdatePlaceReq req);

    void uploadPic(MultipartFile file,Integer placeId);

    List<AbleDateRes> getAbleDate(Integer placeId);

    ReserveDetailRes reserveDetail(ReserveDetailReq req);

    void reserve(ReservePlaceReq req);
}
